/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package HTML;

/**
 *
 * @author Jhon
 */
public class HtmlContent {
    private String content;
    private String list;
    public HtmlContent(){
        content="";
    }
    public HtmlContent(String titulo){
        content="<h1 id=\"pageName\">"+titulo+"</h1>\n ";
    }

    public void addStoryD(String title,String text,String date){
        content+="<div class=\"story\"> \n" +
        "<h3>"+title+"</h3> \n" +
        "<p>"+text+ "</p> \n" +
        "<p>Fecha:"+date+"</p> \n" +
        "</div> \n";
    }

    public void addStory(String title,String text){
        content+="<div class=\"story\"> \n" +
        "<h3>"+title+"</h3> \n" +
        "<p>"+text+ "</p> \n" +
        "</div> \n";
    }

    public void addStoryContest(){
        content+="<div class=\"story\"> \n" +
        "<center><h3> Options</h3> \n" +
        "<p> <a href=\"/OnlineJudge-war/Contest/CreateContest.jsp\">Create Contest</a> | <a href=\"/OnlineJudge-war/Contest/EditContest.jsp\">Edit Contest</a> | <a href=\"/OnlineJudge-war/Contest/DeleteContest.jsp\">Delete Contest</a> </p></center> \n" +
        "</div> \n";
    }

    
    public void addStoryProblem(){
        content+="<div class=\"story\"> \n" +
        "<center><h3> Options</h3> \n" +
        "<p> <a href=\"/OnlineJudge-war/Problemas/CreateProblem.jsp\">Create Problem</a> | <a href=\"/OnlineJudge-war/Problemas/DeleteProblem.jsp\">Delete Problem</a> "
                + "| <a href=\"/OnlineJudge-war/Problemas/CreateTest.jsp\">Create TestCase</a> </p></center> \n" +
        "</div> \n";
    }

    public void addFeature(String title,String text,String image,String width,String height){
        content+="<div class=\"feature\"> <img src=\"/OnlineJudge-war/Images/"+image+"\" width=\""+width +"\" height=\""+height+"\">"
                +"<h3>"+title+"</h3> \n"
                +"<p>"+text+ "</p> \n"
                +"</div>\n";
    }

    public void addTitleImage(String title,String text,String image,String width,String height){
        content+="<div class=\"story\"> "
                +"<center><h3>"+title+"</h3> \n"
                +"<br> <img src=\"/OnlineJudge-war/Images/"+image+"\" width=\""+width +"\" height=\""+height+"\"> <br>"
                +"<p>"+text+ "</p> </center>\n"
                +"</div>\n";
    }


    public void addRegister(){
        content+="<div class=\"story\">\n" +
                "<form action=\"/OnlineJudge-war/Registro/doRegister.jsp\" method=\"get\" target=\"_self\"> \n" +
                "<h3><center>Please enter your personal data</center></h3> \n" +
                "<table border=\"1\" align=\"center\" cellspacing=\"1\" bordercolor=\"#CCCCCC\" bgcolor=\"#eeeeee\"> \n" +
                    "<tr> \n" +
                        "<td>Handle</td> \n" +
                        "<td width=\"120\"><input name=\"handleR\" type=\"text\" size=\"30\" maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Password</td> \n" +
                        "<td><input name=\"paswdR\" type=\"password\" size=\"30\" maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Confirm Password</td> \n" +
                        "<td><input name=\"paswdcon\" type=\"password\" size=\"30\" maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>First Name</td> \n" +
                        "<td><input name=\"firstname\" type=\"text\" size=\"30\" maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Last Name</td> \n" +
                        "<td><input name=\"lastname\" type=\"text\" size=\"30\" maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                     "<tr> \n" +
                        "<td>Email</td> \n" +
                        "<td><input name=\"email\" type=\"text\" size=\"30\" maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Institution</td> \n" +
                        "<td><input name=\"ins\" type=\"text\" size=\"30\" maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Country</td> \n" +
                        "<td><input name=\"country\" type=\"text\" size=\"30\" maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Team</td> \n" +
                        "<td><input name=\"team\" type=\"text\" size=\"30\" maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                 //   list+
                "</table> \n" +
            "<input name=\"goButton\" type=\"submit\" value=\"Ingresar\"> \n" +
            "</form> \n" +
            "</div>";
    }
    
   /* public void addListCountry(String[] con,String[] id){
        list="<tr> \n" +
                  "<td>Institution</td> \n" +
                  "<td><select name=\"country\"> \n";
                    for(int i=0;i<con.length;i++)
                    list+="<option value="+id[i]+">"+con[i]+"</option> \n";

                   list+="</select></td> \n" +
             "</tr> \n";
    }*/



    public void addEditDatosPersonales(String handle,String paswd,String nombre,String apellido,String email,String team,String ins,String coun){
    content+="<div class=\"story\">\n" +
                "<form action=\"/OnlineJudge-war/Usuario/Edit.jsp\" method=\"get\" target=\"_self\"> \n" +
                "<h3><center>Please enter your personal data</center></h3> \n" +
                "<table border=\"1\" align=\"center\" cellspacing=\"1\" bordercolor=\"#CCCCCC\" bgcolor=\"#eeeeee\"> \n" +
                    "<tr> \n" +
                        "<td>Handle</td> \n" +
                        "<td width=\"120\"><input name=\"handleR\" value=\""+handle+"\" type=\"text\" size=\"30\" maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Password</td> \n" +
                        "<td><input name=\"paswdR\" type=\"password\" value=\""+paswd+"\" size=\"30\" maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Confirm Password</td> \n" +
                        "<td><input name=\"paswdcon\" type=\"password\" value=\""+paswd+"\"  size=\"30\" maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>First Name</td> \n" +
                        "<td><input name=\"firstname\" type=\"text\" size=\"30\" value=\""+nombre+"\"  maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Last Name</td> \n" +
                        "<td><input name=\"lastname\" type=\"text\" size=\"30\" value=\""+apellido+"\"  maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                     "<tr> \n" +
                        "<td>Email</td> \n" +
                        "<td><input name=\"email\" type=\"text\" size=\"30\" value=\""+email+"\"  maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    
                    "<tr> \n" +
                        "<td>Institution</td> \n" +
                        "<td><input name=\"ins\" type=\"text\" size=\"30\" value=\""+ins+"\"  maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Country</td> \n" +
                        "<td><input name=\"country\" type=\"text\" size=\"30\" value=\""+coun+"\" maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Team</td> \n" +
                        "<td><input name=\"team\" type=\"text\" size=\"30\" value=\""+team+"\" maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                "</table> \n" +
            "<input name=\"goButton\" type=\"submit\" value=\"Editar\"> \n" +
            "</form> \n" +
            "</div>";
    }

     public void addEditDatosPersonales(String handle,String paswd,String nombre,String apellido,String email,String ins,String coun){
    content+="<div class=\"story\">\n" +
                "<form action=\"/OnlineJudge-war/Usuario/Edit.jsp\" method=\"get\" target=\"_self\"> \n" +
                "<h3><center>Please edit your personal data</center></h3> \n" +
                "<table border=\"1\" align=\"center\" cellspacing=\"1\" bordercolor=\"#CCCCCC\" bgcolor=\"#eeeeee\"> \n" +
                    "<tr> \n" +
                        "<td>Handle</td> \n" +
                        "<td width=\"120\"><input name=\"handleR\" value=\""+handle+"\" type=\"text\" size=\"30\" maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Password</td> \n" +
                        "<td><input name=\"paswdR\" type=\"password\" value=\""+paswd+"\" size=\"30\" maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Confirm Password</td> \n" +
                        "<td><input name=\"paswdcon\" type=\"password\" value=\""+paswd+"\"  size=\"30\" maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>First Name</td> \n" +
                        "<td><input name=\"firstname\" type=\"text\" size=\"30\" value=\""+nombre+"\"  maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Last Name</td> \n" +
                        "<td><input name=\"lastname\" type=\"text\" size=\"30\" value=\""+apellido+"\"  maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                     "<tr> \n" +
                        "<td>Email</td> \n" +
                        "<td><input name=\"email\" type=\"text\" size=\"30\" value=\""+email+"\"  maxlength=\"30\"></td> \n" +
                    "</tr> \n" +

                    "<tr> \n" +
                        "<td>Institution</td> \n" +
                        "<td><input name=\"ins\" type=\"text\" size=\"30\" value=\""+ins+"\"  maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Country</td> \n" +
                        "<td><input name=\"country\" type=\"text\" size=\"30\" value=\""+coun+"\" maxlength=\"30\"></td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                 "</table> \n" +
            "<input name=\"goButton\" type=\"submit\" value=\"Editar\"> \n" +
            "</form> \n" +
            "</div>";
    }

    public void addDatosPersonales(String Dim,String handle,String nombre,String apellido,String email,String team,String ins,String coun){
        content+="<div class=\"story\">\n" +
                "<form action=\"/OnlineJudge-war/Registro/doRegister.jsp\" method=\"get\" target=\"_self\"> \n" +
                "<h3><center>Personal data</center></h3> \n" +
                "<table width=\""+Dim+"\" border=\"1\" align=\"center\" cellspacing=\"1\" bordercolor=\"#CCCCCC\" bgcolor=\"#eeeeee\"> \n" +
                    "<tr> \n" +
                        "<td>Handle</td> \n" +
                        "<td>"+handle+"</td> \n" +
                    "</tr> \n" +

                    "<tr> \n" +
                        "<td>First Name</td> \n" +
                        "<td>"+nombre+"</td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Last Name</td> \n" +
                        "<td>"+apellido+"</td> \n" +
                    "</tr> \n" +
                     "<tr> \n" +
                        "<td>Email</td> \n" +
                        "<td>"+email+"</td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Institution</td> \n" +
                        "<td>"+ins+"</td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Country</td> \n" +
                        "<td>"+coun+"</td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Team</td> \n" +
                        "<td>"+team+"</td> \n" +
                    "</tr> \n" +
                "</table> \n" +
            "</form> \n" +
            "</div>";
    }

    public void addDatosPersonales(String Dim,String handle,String nombre,String apellido,String email,String ins,String coun){
        content+="<div class=\"story\">\n" +
                "<form action=\"/OnlineJudge-war/Registro/doRegister.jsp\" method=\"get\" target=\"_self\"> \n" +
                "<h3><center>Personal data</center></h3> \n" +
                "<table width=\""+Dim+"\" border=\"1\" align=\"center\" cellspacing=\"1\" bordercolor=\"#CCCCCC\" bgcolor=\"#eeeeee\"> \n" +
                    "<tr> \n" +
                        "<td>Handle</td> \n" +
                        "<td>"+handle+"</td> \n" +
                    "</tr> \n" +

                    "<tr> \n" +
                        "<td>First Name</td> \n" +
                        "<td>"+nombre+"</td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Last Name</td> \n" +
                        "<td>"+apellido+"</td> \n" +
                    "</tr> \n" +
                     "<tr> \n" +
                        "<td>Email</td> \n" +
                        "<td>"+email+"</td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Institution</td> \n" +
                        "<td>"+ins+"</td> \n" +
                    "</tr> \n" +
                    "<tr> \n" +
                        "<td>Country</td> \n" +
                        "<td>"+coun+"</td> \n" +
                    "</tr> \n" +
                    
                "</table> \n" +
            "</form> \n" +
            "</div>";
    }



    public void addInitLista(String nombre_tabla,String Dim,String[] datos){
        content+="<div class=\"story\">\n" +
                  "<table width=\""+Dim+"\" border=\"1\" align=\"center\" cellspacing=\"1\" bordercolor=\"#CCCCCC\" bgcolor=\"#eeeeee\"> \n" +
                    "<tr> \n" +
                        "<td colspan=\""+datos.length+"\"><b>"+nombre_tabla+"</b></td> \n" +
                     "</tr> \n" +
                     "<tr> \n";
                        for(String i:datos){
                            content+="<td><b>"+i+"</b></td> \n";
                        }
                      content+="</tr> \n";
    }

    public void addDataLista(String []datos){
            content+="<tr> \n";
                        for(String i:datos){
                            content+="<td>"+i+"</td> \n";
                        }
                      content+="</tr> \n";
    }

    public void addEndLista(){
        content+="</table> \n" +
            "</div>";
    }

    public void subcripcion(){
        content+="<div class=\"story\">\n" +
                 "<center> <a href=\"/OnlineJudge-war/Contest/Subcribe.jsp\"> <h2>Subscribe in this contest!!!</h2></a> </center> " +
            "</div>";
    }


    public void addSearch(String nombre_tabla,String direccion_id){
        content+="<div class=\"story\">\n" +
                  "<table width=\"800\" border=\"0\" align=\"center\" cellspacing=\"1\" bordercolor=\"#CCCCCC\" bgcolor=\"#eeeeee\"> \n" +
                    "<tr> \n" +
                        "<td colspan=\"2\"><b>"+nombre_tabla+"</b></td> \n" +
                     "</tr> \n" +
                     "<form action=\"/OnlineJudge-war/"+direccion_id+"\" method=\"get\" target=\"_self\"> \n" +
                     "<tr> \n"+
                        "<td>Search:</td> \n" +
                        "<td><input name=\"search\" type=\"text\"  size=\"80\" value=\"\"  maxlength=\"30\"></td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td></td> \n" +
                        "<td><input name=\"busqueda\" type=\"radio\" value=\"1\" checked>by Code</td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td></td> \n" +
                        "<td><input name=\"busqueda\" type=\"radio\" value=\"2\">by Name</td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td></td> \n" +
                        "<td><input name=\"busqueda\" type=\"radio\" value=\"3\">by Keyword</td> \n" +
                     "</tr> \n" +
                     "</tr> \n" +
                        "<td colspan=\"2\"> <div align=\"right\"><input name=\"buscarnombre\" type=\"submit\" size=\"80\" value=\"Search\"></div> </td>\n" +
                     "</tr> \n" +
                     "</form> \n" +
                    "</table> \n" +
            "</div>";
    }

    public void addSearchC(String nombre_tabla,String direccion_id){
        content+="<div class=\"story\">\n" +
                  "<table width=\"800\" border=\"0\" align=\"center\" cellspacing=\"1\" bordercolor=\"#CCCCCC\" bgcolor=\"#eeeeee\"> \n" +
                    "<tr> \n" +
                        "<td colspan=\"2\"><b>"+nombre_tabla+"</b></td> \n" +
                     "</tr> \n" +
                     "<form action=\"/OnlineJudge-war/"+direccion_id+"\" method=\"get\" target=\"_self\"> \n" +
                     "<tr> \n"+
                        "<td>Search:</td> \n" +
                        "<td><input name=\"search\" type=\"text\"  size=\"80\" value=\"\"  maxlength=\"30\"></td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td></td> \n" +
                        "<td><input name=\"busqueda\" type=\"radio\" value=\"1\" checked>by ID</td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td></td> \n" +
                        "<td><input name=\"busqueda\" type=\"radio\" value=\"2\">by Name</td> \n" +
                     "</tr> \n" +
                     "</tr> \n" +
                        "<td colspan=\"2\"> <div align=\"right\"><input name=\"buscarnombre\" type=\"submit\" size=\"80\" value=\"Search\"></div> </td>\n" +
                     "</tr> \n" +
                     "</form> \n" +
                    "</table> \n" +
            "</div>";
    }

    public void addSearchU(String nombre_tabla,String direccion_id){
        content+="<div class=\"story\">\n" +
                  "<table width=\"800\" border=\"0\" align=\"center\" cellspacing=\"1\" bordercolor=\"#CCCCCC\" bgcolor=\"#eeeeee\"> \n" +
                    "<tr> \n" +
                        "<td colspan=\"2\"><b>"+nombre_tabla+"</b></td> \n" +
                     "</tr> \n" +
                     "<form action=\"/OnlineJudge-war/"+direccion_id+"\" method=\"get\" target=\"_self\"> \n" +
                     "<tr> \n"+
                        "<td>Search:</td> \n" +
                        "<td><input name=\"search\" type=\"text\"  size=\"80\" value=\"\"  maxlength=\"30\"></td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td></td> \n" +
                        "<td><input name=\"busqueda\" type=\"radio\" value=\"1\" checked>by Handle</td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td></td> \n" +
                        "<td><input name=\"busqueda\" type=\"radio\" value=\"2\">by Country</td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td></td> \n" +
                        "<td><input name=\"busqueda\" type=\"radio\" value=\"3\">by Institution</td> \n" +
                     "</tr> \n" +
                     "</tr> \n" +
                        "<td colspan=\"2\"> <div align=\"right\"><input name=\"buscarnombre\" type=\"submit\" size=\"80\" value=\"Search\"></div> </td>\n" +
                     "</tr> \n" +
                     "</form> \n" +
                    "</table> \n" +
            "</div>";
    }


    public void addSummit(String nombre_tabla,String direccion_id){
        content+="<div class=\"story\">\n" +
                  "<table width=\"800\" border=\"0\" align=\"center\" cellspacing=\"1\" bordercolor=\"#CCCCCC\" bgcolor=\"#eeeeee\"> \n" +
                    "<tr> \n" +
                        "<td colspan=\"2\"><b>"+nombre_tabla+"</b></td> \n" +
                     "</tr> \n" +
                     "<form action=\"/OnlineJudge-war/"+direccion_id+"\" method=\"get\" target=\"_self\"> \n" +
                     "<tr> \n"+
                        "<td>Problem Code</td> \n" +
                        "<td><input name=\"pname\" type=\"text\"  size=\"80\" value=\"\"  maxlength=\"30\"></td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td>Contest Code</td> \n" +
                        "<td><input name=\"cname\" type=\"text\"  size=\"80\" value=\"\"  maxlength=\"30\"></td> \n" +
                     "</tr> \n" +
                     "<tr> \n" +
                        "<td colspan=\"3\">Lang: "+
                        "<select name=\"compilator\">"+
                            "<option value=\"CPP\">C++</option>"+
                            "<option value=\"JAVA\">JAVA</option>"+
                        "</select>"+
                        "</td> \n" +
                     "</tr> \n" +
                     "<tr> \n" +
                         "<td colspan=\"3\"> Code:"+
                         "</td> \n" +

                     "</tr> \n" +
                     "<tr> \n" +
                         "<td colspan=\"3\">"+
                         "<textarea name=\"textarea\" cols=\"80\" rows=\"30\" wrap=\"physical\"></textarea> \n"+
                        "</td> \n" +
                     "</tr> \n" +
                     "</tr> \n" +

                     "<td colspan=\"2\"> <div align=\"right\"><input name=\"buscarnombre\" type=\"submit\" size=\"80\" value=\"Submit\"></div> </td>\n" +
                     "</tr> \n" +
                     
                    "</table> \n" +
                    "</form> \n" +
                    "</div>";

    }

    public void addProblem(String nombre_tabla,String direccion_id){
        content+="<div class=\"story\">\n" +
                  "<table width=\"800\" border=\"0\" align=\"center\" cellspacing=\"1\" bordercolor=\"#CCCCCC\" bgcolor=\"#eeeeee\"> \n" +
                    "<tr> \n" +
                        "<td colspan=\"2\"><b>"+nombre_tabla+"</b></td> \n" +
                     "</tr> \n" +
                     "<form action=\"/OnlineJudge-war/"+direccion_id+"\" method=\"get\" target=\"_self\"> \n" +
                     "<tr> \n"+
                        "<td>Problem name</td> \n" +
                        "<td><input name=\"pname\" type=\"text\"  size=\"80\" value=\"\"  maxlength=\"30\"></td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td>Problem code</td> \n" +
                        "<td><input name=\"pcode\" type=\"text\"  size=\"80\" value=\"\"  maxlength=\"30\"></td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td>Contest code</td> \n" +
                        "<td><input name=\"ccode\" type=\"text\"  size=\"80\" value=\"\"  maxlength=\"30\"></td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td>Time (seconds):</td> \n" +
                        "<td><input name=\"time\" type=\"text\"  size=\"80\" value=\"\"  maxlength=\"10\"></td> \n" +
                     "</tr> \n" +



                     "<tr> \n" +
                        "<td colspan=\"3\">Difficult: "+
                        "<select name=\"diff\">"+
                            "<option value=\"1\">1</option>"+
                            "<option value=\"2\">2</option>"+
                            "<option value=\"2\">3</option>"+
                            "<option value=\"2\">4</option>"+
                            "<option value=\"2\">5</option>"+
                        "</select>"+
                        "</td> \n" +
                     "</tr> \n" +
                     "<tr> \n" +
                         "<td colspan=\"3\"> Problem Description:"+
                         "</td> \n" +

                     "</tr> \n" +
                     "<tr> \n" +
                         "<td colspan=\"3\">"+
                         "<textarea name=\"textarea\" cols=\"80\" rows=\"30\" wrap=\"physical\"></textarea> \n"+
                        "</td> \n" +

                     "</tr> \n" +
                     "<td colspan=\"2\"> <div align=\"right\"><input name=\"buscarnombre\" type=\"submit\" size=\"80\" value=\"Crear\"></div> </td>\n" +
                     "</tr> \n" +
                     "</form> \n" +
                    "</table> \n" +
                    "</div>";

    }
    
    public void addContest(String nombre_tabla,String direccion_id){
        content+="<div class=\"story\">\n" +
                  "<table width=\"800\" border=\"0\" align=\"center\" cellspacing=\"1\" bordercolor=\"#CCCCCC\" bgcolor=\"#eeeeee\"> \n" +
                    "<tr> \n" +
                        "<td colspan=\"2\"><b>"+nombre_tabla+"</b></td> \n" +
                     "</tr> \n" +
                     "<form action=\"/OnlineJudge-war/"+direccion_id+"\" method=\"get\" target=\"_self\"> \n" +
                     "<tr> \n"+
                        "<td>Contest name:</td> \n" +
                        "<td ><input name=\"cname\" type=\"text\"  size=\"80\" value=\"\"  maxlength=\"30\"></td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td>Contest code:</td> \n" +
                        "<td ><input name=\"ccode\" type=\"text\"  size=\"80\" value=\"\"  maxlength=\"10\"></td> \n" +
                     "</tr> \n" +

                     "<tr> \n"+
                        "<td>Start Date:</td> \n" +
                        "<td>YYYY: <input name=\"sdateY\" type=\"text\"  size=\"4\" value=\"YYYY\"  maxlength=\"4\"> \n" +
                        "MM: <input name=\"sdateM\" type=\"text\"  size=\"2\" value=\"MM\"  maxlength=\"2\">\n" +
                        "DD: <input name=\"sdateD\" type=\"text\"  size=\"2\" value=\"DD\"  maxlength=\"2\"></td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td>Start Time :</td> \n" +
                        "<td>HH: <input name=\"stimeH\" type=\"text\"  size=\"2\" value=\"HH\"  maxlength=\"2\">\n" +
                        "MM: <input name=\"stimeM\" type=\"text\"  size=\"2\" value=\"MM\"  maxlength=\"2\"> \n" +
                        "SS: <input name=\"stimeS\" type=\"text\"  size=\"2\" value=\"SS\"  maxlength=\"2\"></td> \n" +
                     "</tr> \n" +

                     "<tr> \n"+
                        "<td>End Date:</td> \n" +
                        "<td>YYYY: <input name=\"edateY\" type=\"text\"  size=\"4\" value=\"YYYY\"  maxlength=\"4\">\n" +
                        "MM: <input name=\"edateM\" type=\"text\"  size=\"2\" value=\"MM\"  maxlength=\"2\">\n" +
                        "DD: <input name=\"edateD\" type=\"text\"  size=\"2\" value=\"DD\"  maxlength=\"2\"></td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td>End Time :</td> \n" +
                        "<td>HH: <input name=\"etimeH\" type=\"text\"  size=\"2\" value=\"HH\"  maxlength=\"2\">\n" +
                        "MM: <input name=\"etimeM\" type=\"text\"  size=\"2\" value=\"MM\"  maxlength=\"2\">\n" +
                        "SS: <input name=\"etimeS\" type=\"text\"  size=\"2\" value=\"SS\"  maxlength=\"2\"></td> \n" +
                     "</tr> \n" +

                     "</tr> \n" +
                     "<td colspan=\"2\"> <div align=\"right\"><input name=\"buscarnombre\" type=\"submit\" size=\"80\" value=\"Crear\"></div> </td>\n" +
                     "</tr> \n" +
                     "</form> \n" +
                    "</table> \n" +
                    "</div>";

    }


    public void addTestCase(String nombre_tabla,String direccion_id){
        content+="<div class=\"story\">\n" +
                  "<table width=\"800\" border=\"0\" align=\"center\" cellspacing=\"1\" bordercolor=\"#CCCCCC\" bgcolor=\"#eeeeee\"> \n" +
                    "<tr> \n" +
                        "<td colspan=\"2\"><b>"+nombre_tabla+"</b></td> \n" +
                     "</tr> \n" +
                     "<form action=\"/OnlineJudge-war/"+direccion_id+"\" method=\"get\" target=\"_self\"> \n" +
                     "<tr> \n"+
                        "<td>Problem name:</td> \n" +
                        "<td ><input name=\"pcode\" type=\"text\"  size=\"80\" value=\"\"  maxlength=\"30\"></td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td colspan=\"2\">Input:</td> \n" +
                     "</tr> \n" +
                     "<tr> \n" +
                         "<td colspan=\"2\">"+
                         "<textarea name=\"input\" cols=\"80\" rows=\"30\" wrap=\"physical\"></textarea> \n"+
                        "</td> \n" +
                    "</tr> \n" +
                     "<tr> \n"+
                        "<td colspan=\"2\">Output:</td> \n" +
                     "</tr> \n" +
                     "<tr> \n" +
                         "<td colspan=\"2\">"+
                         "<textarea name=\"output\" cols=\"80\" rows=\"30\" wrap=\"physical\"></textarea> \n"+
                        "</td> \n" +
                    "</tr> \n" +
                     "<tr> \n" +
                     "<td colspan=\"2\"> <div align=\"right\"><input name=\"buscarnombre\" type=\"submit\" size=\"80\" value=\"Crear\"></div> </td>\n" +
                     "</tr> \n" +
                     "</form> \n" +
                    "</table> \n" +
                    "</div>";

    }

    public void addEditContest(String nombre_tabla,String direccion_id,String cname,String ccode,String start,String end){
        content+="<div class=\"story\">\n" +
                  "<table width=\"800\" border=\"0\" align=\"center\" cellspacing=\"1\" bordercolor=\"#CCCCCC\" bgcolor=\"#eeeeee\"> \n" +
                    "<tr> \n" +
                        "<td colspan=\"2\"><b>"+nombre_tabla+"</b></td> \n" +
                     "</tr> \n" +
                     "<form action=\"/OnlineJudge-war/"+direccion_id+"\" method=\"get\" target=\"_self\"> \n" +
                     "<tr> \n"+
                        "<td>Contest name:</td> \n" +
                        "<td ><input name=\"cname\" type=\"text\"  size=\"80\" value=\""+cname+"\"  maxlength=\"30\"></td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td>Contest code:</td> \n" +
                        "<td ><input name=\"ccode\" type=\"text\"  size=\"80\" value=\""+ccode+"\"  maxlength=\"10\"></td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td>Start Date:</td> \n" +
                        "<td >"+start+"</td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td>End Date:</td> \n" +
                        "<td >"+end+"</td> \n" +
                     "</tr> \n" +

                     "<tr> \n"+
                        "<td>New Start Date:</td> \n" +
                        "<td>YYYY: <input name=\"sdateY\" type=\"text\"  size=\"4\" value=\"YYYY\"  maxlength=\"4\"> \n" +
                        "MM: <input name=\"sdateM\" type=\"text\"  size=\"2\" value=\"MM\"  maxlength=\"2\">\n" +
                        "DD: <input name=\"sdateD\" type=\"text\"  size=\"2\" value=\"DD\"  maxlength=\"2\"></td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td>New Start Time :</td> \n" +
                        "<td>HH: <input name=\"stimeH\" type=\"text\"  size=\"2\" value=\"HH\"  maxlength=\"2\">\n" +
                        "MM: <input name=\"stimeM\" type=\"text\"  size=\"2\" value=\"MM\"  maxlength=\"2\"> \n" +
                        "SS: <input name=\"stimeS\" type=\"text\"  size=\"2\" value=\"SS\"  maxlength=\"2\"></td> \n" +
                     "</tr> \n" +

                     "<tr> \n"+
                        "<td>New End Date:</td> \n" +
                        "<td>YYYY: <input name=\"edateY\" type=\"text\"  size=\"4\" value=\"YYYY\"  maxlength=\"4\">\n" +
                        "MM: <input name=\"edateM\" type=\"text\"  size=\"2\" value=\"MM\"  maxlength=\"2\">\n" +
                        "DD: <input name=\"edateD\" type=\"text\"  size=\"2\" value=\"DD\"  maxlength=\"2\"></td> \n" +
                     "</tr> \n" +
                     "<tr> \n"+
                        "<td>New End Time :</td> \n" +
                        "<td>HH: <input name=\"etimeH\" type=\"text\"  size=\"2\" value=\"HH\"  maxlength=\"2\">\n" +
                        "MM: <input name=\"etimeM\" type=\"text\"  size=\"2\" value=\"MM\"  maxlength=\"2\">\n" +
                        "SS: <input name=\"etimeS\" type=\"text\"  size=\"2\" value=\"SS\"  maxlength=\"2\"></td> \n" +
                     "</tr> \n" +

                     "<td colspan=\"2\"> <div align=\"right\"><input name=\"buscarnombre\" type=\"submit\" size=\"80\" value=\"Crear\"></div> </td>\n" +
                     "</tr> \n" +
                     "</form> \n" +
                    "</table> \n" +
                    "</div>";

    }



    public String getContent(){
        return content;
    }

    //JFREECHART
}
